package com.mediastory.spsserver.logging.dao.impl;

import java.util.List;
import java.util.Map;

import org.mybatis.spring.SqlSessionTemplate;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.mediastory.spsserver.logging.dao.LoggingDao;

@Repository
public class LoggingDaoImpl implements LoggingDao {
	
	@Autowired
	private SqlSessionTemplate sqlSessionTemplate;

	public LoggingDaoImpl() {
		// TODO Auto-generated constructor stub
	}

	@Override
	public List<Map<String, Object>> selectListCategory(Map<String, Object> condition)
			throws Exception {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList("Logging.selectList.category", condition);
	}
	
	@Override
	public List<Map<String, Object>> selectListApp(Map<String, Object> condition)
			throws Exception {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList("Logging.selectList.app", condition);
	}

	@Override
	public List<Map<String, Object>> selectListAppId(Map<String, Object> condition)
			throws Exception {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList("Logging.selectList.appId", condition);
	}

	@Override
	public List<Map<String, Object>> selectListProtocolVer(
			Map<String, Object> condition) throws Exception {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList("Logging.selectList.protocolVer", condition);
	}

	@Override
	public List<Map<String, Object>> selectListContent(Map<String, Object> condition)
			throws Exception {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList("Logging.selectList.content", condition);
	}

	@Override
	public List<Map<String, Object>> selectListContDetail(
			Map<String, Object> condition) throws Exception {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList("Logging.selectList.contDetail", condition);
	}

	@Override
	public List<Map<String, Object>> selectListPage(
			Map<String, Object> condition) throws Exception {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList("Logging.selectList.page", condition);
	}

	@Override
	public List<Map<String, Object>> selectListGrp(Map<String, Object> condition)
			throws Exception {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList("Logging.selectList.grp", condition);
	}	
	
	@Override
	public List<Map<String, Object>> selectListAppLifeCycle(Map<String, Object> condition)
			throws Exception {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList("Logging.selectList.logAppLifeCycle", condition);
	}	
	
	@Override
	public List<Map<String, Object>> selectListDownCont(Map<String, Object> condition)
			throws Exception {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList("Logging.selectList.logDownCont", condition);
	}	
	
	@Override
	public List<Map<String, Object>> selectListConfirmPush(Map<String, Object> condition)
			throws Exception {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList("Logging.selectList.logConfirmPush", condition);
	}	
	
	@Override
	public List<Map<String, Object>> selectListConfirmNotice(Map<String, Object> condition)
			throws Exception {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList("Logging.selectList.logConfirmNotice", condition);
	}	
	
	@Override
	public List<Map<String, Object>> selectListAppUpdate(Map<String, Object> condition)
			throws Exception {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList("Logging.selectList.logAppUpdate", condition);
	}	
	
	@Override
	public List<Map<String, Object>> selectListDetailedEvent(Map<String, Object> condition)
			throws Exception {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList("Logging.selectList.logDetailedEvent", condition);
	}	
	
	@Override
	public List<Map<String, Object>> selectListAdClick(Map<String, Object> condition)
			throws Exception {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList("Logging.selectList.logAdClick", condition);
	}	
	
	@Override
	public List<Map<String, Object>> selectListViewCont(Map<String, Object> condition)
			throws Exception {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList("Logging.selectList.logViewCont", condition);
	}	
	
	@Override
	public List<Map<String, Object>> selectListDetailCont(Map<String, Object> condition)
			throws Exception {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList("Logging.selectList.logDetailCont", condition);
	}	
	
	@Override
	public List<Map<String, Object>> selectListViewLogData(Map<String, Object> condition)
			throws Exception {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList("Logging.selectList.logViewLogData", condition);
	}	
	
	@Override
	public List<Map<String, Object>> selectListModelList(Map<String, Object> condition) throws Exception {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList("Logging.selectList.logModelData", condition);
	}	
	

}